#include <iostream>
#include <filesystem>
#include <thread>
#include "./engine/engine.h"
#include "./editor/editor.h"

int main()
{
    unsigned int n = std::thread::hardware_concurrency();
    std::cout << "Supported concurrent threads: " << n << "\n";
    Engine* engine = new Engine();
    engine->init();
    bool isEditor = true;
    if (isEditor)
    {
        Editor* editor = new Editor();
        editor->init(engine);
    }else{
        engine->launch();
    }
    
    engine->tick();
    delete engine;
    std::cout << "close" << std::endl;
    return 0;
}
